package com.jia.videos.controller;


import com.jia.videos.common.dto.VideoQuery;
import com.jia.videos.common.lang.R;
import com.jia.videos.entity.VideoShow;
import com.jia.videos.service.VideoShowService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/videos/movie")
@CrossOrigin
@Api(tags = "电影管理")
public class MovieController {

    @Autowired
    VideoShowService videoShowService;

    @GetMapping("banner")
    public R banner() {
        List<VideoShow> list = videoShowService.getMovieBanner();
        return R.ok().data("data",list);
    }

    @GetMapping("hotList")
    public R hotList() {
        List<VideoShow> list = videoShowService.getMovieHotList();
        return R.ok().data("data",list);
    }

}
